﻿//后台全选/取消全选，删除提示
function CheckAll(form) 
{
    for (var i=0;i<form.elements.length;i++)    
    {
        var e = form.elements[i];
        if (e.name != 'chkAll')   
        {
              e.checked = form.chkAll.checked; 
        }
    }
    form.BackAll.checked=false;
}
function CheckBack(form)
{
   for (var i=0;i<form.elements.length;i++)    
    {
        var e = form.elements[i];
        if (e.checked==false)   
        {
              e.checked = true; 
        }
        else
        {
           e.checked = false; 
        }
    }
    form.chkAll.checked=false;
      form.BackAll.checked=true; 
}
function isDel(alertString)
{
    var ok=confirm(alertString)
    if(!ok)
    {
        return false
    }
    else
    {
        return true;
    }
}
function showBtnOver(obj)
{
    if(obj.className.indexOf("Over")==-1)
    obj.className=obj.className+"Over";
}

function showBtnOut(obj)
{
    if(obj.className.indexOf("Over")>-1)
    obj.className=obj.className.replace("Over","");
}

function isExecute(alertString)
{
    var ok=confirm(alertString)
    if(!ok)
    {
        return false
    }
    else
    {
        return true;
    }
}